package com.baofu.paycore.manager.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 产品退款策略关联信息对象
 * <p>
 * </p>
 * User: kwl Date: 2016/6/6 ProjectName: paycore Version: 5.0.0
 */
@Setter
@Getter
@ToString
public class RefundStrategyBO implements Comparable<RefundStrategyBO> {

    /**
     * 业务类型
     */
    private String bizType;

    /**
     * 业务产品细类
     */
    private String subBizType;

    /**
     * 退款优先级策略配置
     */
    private String refundStrategyPriority;

    /**
     * 退款模式配置
     */
    private String refundStrategyMode;

    /**
     * 支付工具类型(细类)
     */
    private String payToolType;

    /**
     * 退款方向
     */
    private String refundTargetMode;

    /**
     * 优先级
     */
    private int priority;

    @Override
    public int compareTo(RefundStrategyBO refundStrategyBO) {
        if (refundStrategyBO.priority < this.priority) {
            return 1;
        } else if (refundStrategyBO.priority > this.priority) {
            return -1;
        } else {
            return 0;
        }
    }
}
